<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>操作系统运维常见场景</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.8/dist/chart.umd.min.js"></script>
    <link href="./common-styles.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36CFC9',
                        neutral: {
                            100: '#F5F5F5',
                            200: '#E5E5E5',
                            300: '#D4D4D4',
                            400: '#A3A3A3',
                            500: '#737373',
                            600: '#525252',
                            700: '#404040',
                            800: '#262626',
                            900: '#171717',
                        },
                        success: '#52C41A',
                        warning: '#FAAD14',
                        danger: '#FF4D4F',
                        info: '#1890FF',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-50 font-sans text-neutral">
    <!-- 统一导航菜单 -->
<nav class="bg-white border-b border-neutral-200 sticky top-0 z-50">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="flex justify-between h-16">
            <div class="flex items-center">
                <div class="flex-shrink-0 flex items-center">
                    <i class="fa fa-cube text-primary text-xl mr-2"></i>
                    <span class="font-medium text-lg">智能运维平台</span>
                </div>
                <div class="hidden sm:ml-6 sm:flex sm:space-x-6">
                    <a href="多模态.html" class="border-transparent text-neutral-500 hover:border-neutral-300 hover:text-neutral-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
                        <i class="fa fa-line-chart mr-1"></i> 多模态评估
                    </a>
                    <a href="聊天助手.html" class="border-transparent text-neutral-500 hover:border-neutral-300 hover:text-neutral-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
                        <i class="fa fa-comment mr-1"></i> 聊天助手
                    </a>
                    <a href="使用率.html" class="border-transparent text-neutral-500 hover:border-neutral-300 hover:text-neutral-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
                        <i class="fa fa-microchip mr-1"></i> 性能监控
                    </a>
                    <a href="ai.html" class="border-transparent text-neutral-500 hover:border-neutral-300 hover:text-neutral-700 inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
                        <i class="fa fa-bug mr-1"></i> 故障诊断
                    </a>
                    <a href="os运维场景.html" class="border-primary text-primary inline-flex items-center px-1 pt-1 border-b-2 text-sm font-medium">
                        <i class="fa fa-server mr-1"></i> 运维场景
                    </a>
                </div>
            </div>
            <div class="flex items-center space-x-4">
                <a href="登录.html" class="text-neutral-500 hover:text-neutral-700 inline-flex items-center px-1 py-1 text-sm font-medium">
                    <i class="fa fa-sign-in mr-1"></i> 登录
                </a>
                <a href="注册.html" class="text-neutral-500 hover:text-neutral-700 inline-flex items-center px-1 py-1 text-sm font-medium">
                    <i class="fa fa-user-plus mr-1"></i> 注册
                </a>
                <div class="relative">
                    <button type="button" class="flex text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary" id="user-menu-button">
                        <img class="h-8 w-8 rounded-full object-cover" src="https://i.pravatar.cc/150?img=33" alt="用户头像">
                    </button>
                </div>
                <button type="button" class="p-2 rounded-full text-neutral-500 hover:text-neutral-700 hover:bg-neutral-100 focus:outline-none">
                    <i class="fa fa-cog"></i>
                </button>
            </div>
        </div>
    </div>

    <!-- 移动端菜单 -->
    <div class="sm:hidden">
        <div class="pt-2 pb-3 space-y-1">

            <a href="多模态.html" class="border-transparent text-neutral-600 hover:bg-neutral-50 hover:border-neutral-300 hover:text-neutral-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
                <i class="fa fa-line-chart mr-1"></i> 多模态评估
            </a>
            <a href="聊天助手.html" class="border-transparent text-neutral-600 hover:bg-neutral-50 hover:border-neutral-300 hover:text-neutral-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
                <i class="fa fa-comment mr-1"></i> 聊天助手
            </a>
            <a href="使用率.html" class="border-transparent text-neutral-600 hover:bg-neutral-50 hover:border-neutral-300 hover:text-neutral-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
                <i class="fa fa-microchip mr-1"></i> 性能监控
            </a>
            <a href="ai.html" class="border-transparent text-neutral-600 hover:bg-neutral-50 hover:border-neutral-300 hover:text-neutral-800 block pl-3 pr-4 py-2 border-l-4 text-base font-medium">
                <i class="fa fa-bug mr-1"></i> 故障诊断
            </a>
            <a href="os运维场景.html" class="bg-primary text-white block pl-3 pr-4 py-2 border-l-4 border-primary text-base font-medium">
                <i class="fa fa-server mr-1"></i> 运维场景
            </a>
        </div>
    </div>
</nav>

    <main class="flex-grow">
        <div class="max-w-7xl mx-auto py-6 sm:px-6 lg:px-8">
            <!-- 页面标题区域 -->
            <div class="bg-gradient-to-r from-primary to-info text-white rounded-xl p-6 mb-8 animate-gradient relative overflow-hidden">
                <div class="absolute top-0 right-0 w-64 h-64 bg-white/10 rounded-full -mr-32 -mt-32"></div>
                <div class="absolute bottom-0 left-0 w-48 h-48 bg-white/10 rounded-full -ml-24 -mb-24"></div>
                <div class="relative z-10">
                    <h1 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold mb-2">操作系统运维场景</h1>
                    <p class="text-white/90 mb-4">涵盖从系统部署到故障处理的完整运维生命周期，提供系统化的参考指南</p>
                    <div class="flex flex-wrap gap-2">
                        <span class="px-3 py-1 bg-white/20 rounded-full text-sm">全生命周期覆盖</span>
                        <span class="px-3 py-1 bg-white/20 rounded-full text-sm">结构化分类</span>
                        <span class="px-3 py-1 bg-white/20 rounded-full text-sm">最佳实践</span>
                        <span class="px-3 py-1 bg-white/20 rounded-full text-sm">响应式设计</span>
                    </div>
                </div>
            </div>

            // 添加核心指标卡片区域
            <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-neutral-800">总场景数</h3>
                    <span class="px-2 py-1 text-xs bg-success/10 text-success rounded-full">完整覆盖</span>
                </div>
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-3xl font-bold text-neutral-800">14</p>
                        <p class="text-sm text-neutral-500">运维场景总数</p>
                    </div>
                    <div class="relative w-16 h-16">
                        <svg class="w-16 h-16 progress-ring" viewBox="0 0 36 36">
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#E5E5E5" stroke-width="2" />
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#52C41A" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="0" />
                        </svg>
                        <div class="absolute inset-0 flex items-center justify-center text-success">
                            <i class="fa fa-sitemap"></i>
                        </div>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex justify-between text-xs mb-1">
                        <span>覆盖完整运维周期</span>
                        <span>100%</span>
                    </div>
                    <div class="w-full bg-neutral-200 rounded-full h-2">
                        <div class="bg-success h-2 rounded-full" style="width: 100%"></div>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-neutral-800">关键场景</h3>
                    <span class="px-2 py-1 text-xs bg-warning/10 text-warning rounded-full">需关注</span>
                </div>
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-3xl font-bold text-neutral-800">8</p>
                        <p class="text-sm text-neutral-500">高优先级场景</p>
                    </div>
                    <div class="relative w-16 h-16">
                        <svg class="w-16 h-16 progress-ring" viewBox="0 0 36 36">
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#E5E5E5" stroke-width="2" />
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#FAAD14" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="35" />
                        </svg>
                        <div class="absolute inset-0 flex items-center justify-center text-warning">
                            <i class="fa fa-exclamation-triangle"></i>
                        </div>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex justify-between text-xs mb-1">
                        <span>占比</span>
                        <span>65%</span>
                    </div>
                    <div class="w-full bg-neutral-200 rounded-full h-2">
                        <div class="bg-warning h-2 rounded-full" style="width: 65%"></div>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-xl shadow-sm p-6 card-hover">
                <div class="flex items-center justify-between mb-4">
                    <h3 class="text-lg font-semibold text-neutral-800">工具覆盖率</h3>
                    <span class="px-2 py-1 text-xs bg-primary/10 text-primary rounded-full">良好</span>
                </div>
                <div class="flex items-center justify-between">
                    <div>
                        <p class="text-3xl font-bold text-neutral-800">92%</p>
                        <p class="text-sm text-neutral-500">自动化工具支持</p>
                    </div>
                    <div class="relative w-16 h-16">
                        <svg class="w-16 h-16 progress-ring" viewBox="0 0 36 36">
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#E5E5E5" stroke-width="2" />
                            <circle cx="18" cy="18" r="16" fill="none" stroke="#165DFF" stroke-width="2" stroke-dasharray="100" stroke-dashoffset="8" />
                        </svg>
                        <div class="absolute inset-0 flex items-center justify-center text-primary">
                            <i class="fa fa-wrench"></i>
                        </div>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex justify-between text-xs mb-1">
                        <span>覆盖率趋势</span>
                        <span class="text-success"><i class="fa fa-arrow-up"></i> 5.3%</span>
                    </div>
                    <div class="w-full bg-neutral-200 rounded-full h-2">
                        <div class="bg-primary h-2 rounded-full" style="width: 92%"></div>
                    </div>
                </div>
            </div>
        </div>

        // 添加图表区域
        <div class="bg-white rounded-xl shadow-sm p-6 mb-8">
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-xl font-bold">运维场景分布</h2>
                <div class="flex space-x-2">
                    <button class="px-3 py-1 text-sm bg-primary/10 text-primary rounded-lg">按类别</button>
                    <button class="px-3 py-1 text-sm bg-neutral-100 text-neutral-light rounded-lg">按优先级</button>
                </div>
            </div>
            <div class="h-64">
                <canvas id="scenarioDistributionChart"></canvas>
            </div>
        </div>

        <div class="flex flex-col md:flex-row gap-8">
            <!-- 侧边导航 - 在移动设备上可折叠 -->
            <!-- 左侧导航栏已移除 -->

            <!-- 主内容区 -->
            <main class="w-full space-y-8">
                <!-- 介绍部分 -->
                <section class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <h2 class="text-2xl font-bold text-neutral mb-4">操作系统运维常见场景</h2>
                    <p class="text-neutral-light mb-4">
                        本页面整理了操作系统运维工作中的各类常见场景，涵盖从系统部署到故障处理的完整运维生命周期，
                        可为运维人员提供系统化的参考指南。
                    </p>
                    <div class="flex flex-wrap gap-2 mt-6">
                        <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-primary/10 text-primary">
                            <i class="fa fa-check-circle mr-1"></i>完整覆盖
                        </span>
                        <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-secondary/10 text-secondary">
                            <i class="fa fa-structure mr-1"></i>结构化分类
                        </span>
                        <span class="inline-flex items-center px-3 py-1 rounded-full text-xs font-medium bg-accent/10 text-accent">
                            <i class="fa fa-mobile mr-1"></i>响应式设计
                        </span>
                    </div>
                </section>

                <!-- 上线制备 -->
                <section id="deployment" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center mr-4">
                            <i class="fa fa-rocket text-primary"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">上线制备</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-desktop text-primary mr-3"></i>物理机装机
                            </h3>
                            <p class="text-sm text-neutral-600">物理服务器的硬件配置、系统安装与基础环境搭建</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-vmware text-primary mr-3"></i>虚拟机装机
                            </h3>
                            <p class="text-sm text-neutral-600">虚拟化平台上的虚拟机创建、配置与系统部署</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-cubes text-primary mr-3"></i>基础软件安装
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统必备软件、驱动程序及依赖库的安装配置</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-code-fork text-primary mr-3"></i>版本控制
                            </h3>
                            <p class="text-sm text-neutral-600">系统及软件版本的选择、管理与兼容性验证</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-check-square-o text-primary mr-3"></i>功能验证
                            </h3>
                            <p class="text-sm text-neutral-600">系统功能的完整性测试与验证流程</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-primary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-tachometer text-primary mr-3"></i>性能测试
                            </h3>
                            <p class="text-sm text-neutral-600">系统资源使用情况、响应速度及负载能力测试</p>
                        </div>
                    </div>
                </section>

                <!-- 配置变更 -->
                <section id="configuration" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-secondary/10 flex items-center justify-center mr-4">
                            <i class="fa fa-sliders text-secondary"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">配置变更</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-secondary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-handshake-o text-secondary mr-3"></i>工地对接
                            </h3>
                            <p class="text-sm text-neutral-600">与项目各方的需求沟通、方案确认与实施计划制定</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-secondary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-cogs text-secondary mr-3"></i>变更执行
                            </h3>
                            <p class="text-sm text-neutral-600">系统配置的修改、应用与部署过程</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-secondary">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-check-circle text-secondary mr-3"></i>变更验证
                            </h3>
                            <p class="text-sm text-neutral-600">配置变更后的功能验证、性能测试与回滚准备</p>
                        </div>
                    </div>
                </section>

                <!-- 授权管理 -->
                <section id="authorization" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-accent/10 flex items-center justify-center mr-4">
                            <i class="fa fa-key text-accent"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">授权管理</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-accent">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-database text-accent mr-3"></i>LDAP管理
                            </h3>
                            <p class="text-sm text-neutral-600">基于LDAP协议的集中式身份认证与授权管理</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-accent">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-linux text-accent mr-3"></i>Linux认证
                            </h3>
                            <p class="text-sm text-neutral-600">Linux系统本地与远程用户认证机制配置与管理</p>
                        </div>
                    </div>
                </section>

                <!-- 密码管理 -->
                <section id="password" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center mr-4">
                            <i class="fa fa-lock text-purple-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">密码管理</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-shield text-purple-600 mr-3"></i>复杂度
                            </h3>
                            <p class="text-sm text-neutral-600">密码长度、字符类型组合等安全复杂度策略配置</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-calendar text-purple-600 mr-3"></i>有效期
                            </h3>
                            <p class="text-sm text-neutral-600">密码使用期限设置与过期提醒机制</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-users text-purple-600 mr-3"></i>批量修改
                            </h3>
                            <p class="text-sm text-neutral-600">多用户密码的批量更新与重置操作</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-eye text-purple-600 mr-3"></i>密码获取
                            </h3>
                            <p class="text-sm text-neutral-600">安全的密码找回与重置流程设计与实施</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-exchange text-purple-600 mr-3"></i>传输加密
                            </h3>
                            <p class="text-sm text-neutral-600">密码在网络传输过程中的加密保护机制</p>
                        </div>
                    </div>
                </section>

                <!-- 安全加固 -->
                <section id="security" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-4">
                            <i class="fa fa-shield text-red-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">安全加固</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-server text-red-600 mr-3"></i>设备层
                            </h3>
                            <p class="text-sm text-neutral-600">硬件设备级别的安全防护措施与配置</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-cogs text-red-600 mr-3"></i>系统层
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统内核及系统服务的安全加固配置</p>
                        </div>
                    </div>
                </section>

                <!-- 补丁管理 -->
                <section id="patches" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-orange-100 flex items-center justify-center mr-4">
                            <i class="fa fa-puzzle-piece text-orange-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">补丁管理</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-orange-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-download text-orange-600 mr-3"></i>全量更新
                            </h3>
                            <p class="text-sm text-neutral-600">系统所有组件与软件的全面更新与升级</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-orange-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-plus-square text-orange-600 mr-3"></i>补丁安装
                            </h3>
                            <p class="text-sm text-neutral-600">安全补丁与功能补丁的筛选、测试与安装</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-orange-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-undo text-orange-600 mr-3"></i>补丁回退
                            </h3>
                            <p class="text-sm text-neutral-600">补丁安装失败或不兼容时的回滚机制与操作</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-orange-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-refresh text-orange-600 mr-3"></i>系统重启
                            </h3>
                            <p class="text-sm text-neutral-600">补丁安装后系统重启的计划安排与实施</p>
                        </div>
                    </div>
                </section>

                <!-- 漏洞扫描 -->
                <section id="vulnerability" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-yellow-100 flex items-center justify-center mr-4">
                            <i class="fa fa-search text-yellow-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">漏洞扫描</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-yellow-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-linux text-yellow-600 mr-3"></i>OS漏洞扫描
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统层面的安全漏洞检测与评估</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-yellow-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-exchange text-yellow-600 mr-3"></i>网络协议扫描
                            </h3>
                            <p class="text-sm text-neutral-600">网络协议实现中的安全漏洞扫描与分析</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-yellow-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-plug text-yellow-600 mr-3"></i>端口扫描
                            </h3>
                            <p class="text-sm text-neutral-600">开放端口检测、服务识别与安全评估</p>
                        </div>
                    </div>
                </section>

                <!-- 系统巡检 -->
                <section id="inspection" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center mr-4">
                            <i class="fa fa-check-square text-green-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">系统巡检</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-green-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-server text-green-600 mr-3"></i>OS巡检
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统运行状态、资源使用与健康检查</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-green-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-cogs text-green-600 mr-3"></i>应用巡检
                            </h3>
                            <p class="text-sm text-neutral-600">应用程序运行状态、日志分析与性能监控</p>
                        </div>
                    </div>
                </section>

                <!-- 系统升级 -->
                <section id="upgrade" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-4">
                            <i class="fa fa-arrow-circle-up text-blue-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">系统升级</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-blue-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-refresh text-blue-600 mr-3"></i>OS大版本升级
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统主版本的跨版本升级与迁移</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-blue-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-plus-circle text-blue-600 mr-3"></i>OS小版本升级
                            </h3>
                            <p class="text-sm text-neutral-600">操作系统次版本的更新与补丁集应用</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-blue-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-code-fork text-blue-600 mr-3"></i>应用升级
                            </h3>
                            <p class="text-sm text-neutral-600">应用程序版本更新与功能升级实施</p>
                        </div>
                    </div>
                </section>

                <!-- 应用上线 -->
                <section id="application" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-indigo-100 flex items-center justify-center mr-4">
                            <i class="fa fa-cloud-upload text-indigo-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">应用上线</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-indigo-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-database text-indigo-600 mr-3"></i>基础资源提供
                            </h3>
                            <p class="text-sm text-neutral-600">应用运行所需的服务器、存储、网络等资源配置</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-indigo-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-check-circle text-indigo-600 mr-3"></i>上线验证
                            </h3>
                            <p class="text-sm text-neutral-600">应用部署后的功能测试、性能验证与用户验收</p>
                        </div>
                    </div>
                </section>

                <!-- 系统监控 -->
                <section id="monitoring" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-pink-100 flex items-center justify-center mr-4">
                            <i class="fa fa-line-chart text-pink-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">系统监控</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-pink-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-cogs text-pink-600 mr-3"></i>基础服务监控
                            </h3>
                            <p class="text-sm text-neutral-600">系统核心服务运行状态与可用性监控</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-pink-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-bar-chart text-pink-600 mr-3"></i>指标定义
                            </h3>
                            <p class="text-sm text-neutral-600">监控指标的选取、定义与阈值设定</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-pink-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-server text-pink-600 mr-3"></i>资源使用
                            </h3>
                            <p class="text-sm text-neutral-600">CPU、内存、磁盘、网络等资源使用情况监控</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-pink-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-bell text-pink-600 mr-3"></i>告警通知
                            </h3>
                            <p class="text-sm text-neutral-600">异常情况的检测、告警触发与通知机制</p>
                        </div>
                    </div>
                </section>

                <!-- 日志管理 -->
                <section id="log-management" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-teal-100 flex items-center justify-center mr-4">
                            <i class="fa fa-file-text text-teal-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">日志管理</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-teal-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-download text-teal-600 mr-3"></i>日志抓取
                            </h3>
                            <p class="text-sm text-neutral-600">系统与应用日志的收集、汇聚与集中管理</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-teal-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-database text-teal-600 mr-3"></i>日志存储
                            </h3>
                            <p class="text-sm text-neutral-600">日志数据的存储策略、格式与管理方案</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-teal-600">
                            <h3 class="font-medium mb-2 flex items-center text-lg">
                                <i class="fa fa-archive text-teal-600 mr-3"></i>日志备份
                            </h3>
                            <p class="text-sm text-neutral-600">日志数据的备份策略、周期与恢复机制</p>
                        </div>
                    </div>
                </section>

                <!-- 日志分析 -->
                <section id="log-analysis" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-gray-100 flex items-center justify-center mr-4">
                            <i class="fa fa-search text-gray-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">日志分析</h2>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-filter text-gray-600 mr-3"></i>日志级别
                            </h3>
                            <p class="text-sm text-neutral-600">不同级别日志的筛选、聚合与分析方法</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-link text-gray-600 mr-3"></i>日志关联
                            </h3>
                            <p class="text-sm text-neutral-600">多源日志的关联分析与事件溯源</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-bell text-gray-600 mr-3"></i>告警管理
                            </h3>
                            <p class="text-sm text-neutral-600">基于日志分析的异常检测与告警机制</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-purple-600">
                            <h3 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-bug text-gray-600 mr-3"></i>真实问题识别
                            </h3>
                            <p class="text-sm text-neutral-600">从大量日志中识别真实问题与故障根源</p>
                        </div>
                    </div>
                </section>

                <!-- 故障处理 -->
                <section id="troubleshooting" class="bg-white rounded-lg shadow-sm p-6 section-hover">
                    <div class="flex items-center mb-6">
                        <div class="w-10 h-10 rounded-full bg-red-100 flex items-center justify-center mr-4">
                            <i class="fa fa-wrench text-red-600"></i>
                        </div>
                        <h2 class="text-xl font-bold text-neutral">故障处理</h2>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">问题复现</h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-check-circle text-red-600 mr-3"></i>必现
                            </h4>
                            <p class="text-sm text-neutral-600">在特定条件下可稳定重现的故障</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-random text-red-600 mr-3"></i>偶发
                            </h4>
                            <p class="text-sm text-neutral-600">在特定条件下随机出现的故障</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-question-circle text-red-600 mr-3"></i>无法复现
                            </h4>
                            <p class="text-sm text-neutral-600">无法通过已知条件重现的故障</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">性能问题</h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-desktop text-red-600 mr-3"></i>系统卡顿
                            </h4>
                            <p class="text-sm text-neutral-600">操作系统响应缓慢或无响应问题</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-cogs text-red-600 mr-3"></i>应用卡顿
                            </h4>
                            <p class="text-sm text-neutral-600">应用程序运行缓慢或无响应问题</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-exchange text-red-600 mr-3"></i>网络延迟
                            </h4>
                            <p class="text-sm text-neutral-600">网络传输延迟或连接不稳定问题</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">宕机问题</h3>
                    <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-hourglass-half text-red-600 mr-3"></i>系统慢死
                            </h4>
                            <p class="text-sm text-neutral-600">系统资源耗尽导致的性能急剧下降</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-code text-red-600 mr-3"></i>内核缺陷
                            </h4>
                            <p class="text-sm text-neutral-600">操作系统内核漏洞或缺陷导致的崩溃</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-spinner text-red-600 mr-3"></i>僵死进程
                            </h4>
                            <p class="text-sm text-neutral-600">无法正常终止的进程导致系统资源耗尽</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-sign-in text-red-600 mr-3"></i>无法登录
                            </h4>
                            <p class="text-sm text-neutral-600">系统登录功能异常或认证失败问题</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">文件丢失</h3>
                    <div class="grid grid-cols-1 md:grid-cols-4 gap-4 mb-8">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-trash text-red-600 mr-3"></i>误删除
                            </h4>
                            <p class="text-sm text-neutral-600">人为操作导致的文件或数据意外删除</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-exclamation-triangle text-red-600 mr-3"></i>损坏
                            </h4>
                            <p class="text-sm text-neutral-600">文件系统损坏或文件内容错误</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-hdd-o text-red-600 mr-3"></i>磁盘故障
                            </h4>
                            <p class="text-sm text-neutral-600">物理磁盘损坏导致的数据丢失</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-database text-red-600 mr-3"></i>DR失败
                            </h4>
                            <p class="text-sm text-neutral-600">灾难恢复过程失败导致的数据不可用</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">网络问题</h3>
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-8">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-server text-red-600 mr-3"></i>服务端层
                            </h4>
                            <p class="text-sm text-neutral-600">服务器端网络配置或服务异常</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-exchange text-red-600 mr-3"></i>交换机层
                            </h4>
                            <p class="text-sm text-neutral-600">网络交换设备配置或性能问题</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-desktop text-red-600 mr-3"></i>客户端层
                            </h4>
                            <p class="text-sm text-neutral-600">客户端网络配置或连接问题</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 text-neutral">恢复时效</h3>
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-ambulance text-red-600 mr-3"></i>故障应急处理
                            </h4>
                            <p class="text-sm text-neutral-600">故障发生后的紧急响应与恢复措施</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-search-plus text-red-600 mr-3"></i>根因分析
                            </h4>
                            <p class="text-sm text-neutral-600">故障根本原因的识别、分析与记录</p>
                        </div>
                    </div>

                    <h3 class="text-lg font-semibold mb-4 mt-8 text-neutral">分析工具</h3>
                    <div class="grid grid-cols-2 md:grid-cols-4 gap-4">
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-cogs text-red-600 mr-3"></i>kdump
                            </h4>
                            <p class="text-sm text-neutral-600">Linux内核崩溃转储机制</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-code text-red-600 mr-3"></i>strace
                            </h4>
                            <p class="text-sm text-neutral-600">系统调用跟踪工具</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-code-fork text-red-600 mr-3"></i>ltrace
                            </h4>
                            <p class="text-sm text-neutral-600">库调用跟踪工具</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-wrench text-red-600 mr-3"></i>systemtap
                            </h4>
                            <p class="text-sm text-neutral-600">系统动态跟踪工具</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-terminal text-red-600 mr-3"></i>kprobe
                            </h4>
                            <p class="text-sm text-neutral-600">Linux内核动态调试工具</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-plug text-red-600 mr-3"></i>lprobe
                            </h4>
                            <p class="text-sm text-neutral-600">用户空间动态调试工具</p>
                        </div>
                        <div class="bg-white rounded-xl shadow-sm p-6 card-hover border-l-4 border-red-500">
                            <h4 class="font-medium text-lg mb-2 flex items-center">
                                <i class="fa fa-file-o text-red-600 mr-3"></i>lsof
                            </h4>
                            <p class="text-sm text-neutral-600">打开文件列表工具</p>
                        </div>
                    </div>
                </section>
            </main>
    </div>

    <!-- 页脚 -->
    <footer class="bg-white shadow-inner mt-12 py-6">
        <div class="container mx-auto px-4 text-center text-neutral-light text-sm">
            <p>操作系统运维常见场景参考指南 &copy; 2023</p>
            <p class="mt-1">整理与维护：系统运维团队</p>
        </div>
    </footer>

    <script>
        // 侧边栏切换（移动设备）
        document.getElementById('toggle-sidebar').addEventListener('click', function() {
            const sidebar = document.getElementById('sidebar');
            sidebar.classList.toggle('hidden');
            sidebar.classList.toggle('block');
            sidebar.classList.toggle('absolute');
            sidebar.classList.toggle('top-20');
            sidebar.classList.toggle('left-4');
            sidebar.classList.toggle('z-20');
            sidebar.classList.toggle('w-64');
        });

        // 平滑滚动
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function(e) {
                e.preventDefault();
                const targetId = this.getAttribute('href');
                const targetElement = document.querySelector(targetId);
                if (targetElement) {
                    window.scrollTo({
                        top: targetElement.offsetTop - 80,
                        behavior: 'smooth'
                    });

                    // 在移动设备上点击导航后关闭侧边栏
                    const sidebar = document.getElementById('sidebar');
                    if (window.innerWidth < 768) {
                        sidebar.classList.add('hidden');
                        sidebar.classList.remove('block');
                    }
                }
            });
        });

        // 暗黑模式切换
        document.getElementById('toggle-dark-mode').addEventListener('click', function() {
            document.body.classList.toggle('dark-mode');
            const icon = this.querySelector('i');
            if (icon.classList.contains('fa-moon-o')) {
                icon.classList.remove('fa-moon-o');
                icon.classList.add('fa-sun-o');
            } else {
                icon.classList.remove('fa-sun-o');
                icon.classList.add('fa-moon-o');
            }
        });

        // 滚动时高亮当前导航项
        window.addEventListener('scroll', function() {
            const sections = document.querySelectorAll('section[id]');
            let scrollPosition = window.scrollY + 100;

            sections.forEach(section => {
                const sectionTop = section.offsetTop;
                const sectionHeight = section.offsetHeight;
                const sectionId = section.getAttribute('id');
                const navLink = document.querySelector(`.nav-link[href="#${sectionId}"]`);

                if (scrollPosition >= sectionTop && scrollPosition < sectionTop + sectionHeight) {
                    navLink.classList.add('bg-primary/10', 'text-primary');
                } else {
                    navLink.classList.remove('bg-primary/10', 'text-primary');
                }
            });
        });
    </script>
</body>
</html>

// 初始化图表
document.addEventListener('DOMContentLoaded', function () {
    // 场景分布图表
    const scenarioCtx = document.getElementById('scenarioDistributionChart');
    if (scenarioCtx) {
        const scenarioChart = new Chart(scenarioCtx, {
            type: 'doughnut',
            data: {
                labels: ['系统部署', '配置管理', '安全运维', '监控告警', '故障处理'],
                datasets: [{
                    data: [3, 2, 3, 2, 4],
                    backgroundColor: [
                        '#165DFF',
                        '#36CFC9',
                        '#FAAD14',
                        '#1890FF',
                        '#FF4D4F'
                    ],
                    borderWidth: 0
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'right'
                    }
                },
                cutout: '65%'
            }
        });
    }
});